﻿<%@ Page Language="C#" AutoEventWireup="false" MasterPageFile="~/App_MasterPages/layout.Master"
    CodeBehind="SwirlingQuestionEdit.aspx.cs" Inherits="ud_SwirlingQuestion.SwirlingQuestionEdit" %>

<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">
    <portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">
        <mp:CornerRounderTop ID="ctop1" runat="server" />
        <asp:Panel ID="pnlStoreManager" runat="server" CssClass="art-Post-inner panelwrapper admin postquestion">
            <portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">
                <div class="modulecontent">
                    <fieldset>
                        <legend>
                            <asp:Label ID="lblHeader" runat="server" CssClass="labeltitle" />
                        </legend>
                        <div class="settingrow">
                            <portal:mojoButton ID="btnUnpublished" runat="server" />
                            <portal:mojoButton ID="btnPublished" runat="server" />
                        </div>
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <mp:mojoGridView ID="gvItems" runat="server" AutoGenerateColumns="false" AllowPaging="true"
                                    CssClass="gridviewadmin" EnableViewState="false">
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:Literal ID="ltrTitle" runat="server" Text='<%# ud_Utilities.Utilities.FormatInfo(Eval("Title").ToString()) %>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:Literal ID="ltrQuestion" runat="server" Text='<%# ud_Utilities.Utilities.FormatInfo(Eval("Question").ToString()) %>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:ImageButton ID="ibtnEdit" runat="server" ImageUrl='<%# EditLinkImageUrl %>'
                                                    CommandName="EditItem" CommandArgument='<%# Eval("Guid") %>' ToolTip="<%# EditLinkText %>"
                                                    CausesValidation="false" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:ImageButton ID="ibtnDelete" runat="server" ImageUrl='<%# DeleteLinkImageUrl %>'
                                                    CommandName="DeleteItem" CommandArgument='<%# Eval("Guid") %>' ToolTip="<%# DeleteLinkText %>"
                                                    CausesValidation="false" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <EmptyDataTemplate>
                                        <asp:Literal ID="ltrEmpty" runat="server" Text='<%# Resources.SwirlingQuestionResource.EmptyGridView %>' />
                                    </EmptyDataTemplate>
                                </mp:mojoGridView>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                        <asp:Panel ID="pnlEdit" runat="server">
                            <div class="settingrow">
                                <mp:SiteLabel ID="lblTitle" runat="server" ResourceFile="SwirlingQuestionResource"
                                    ConfigKey="SwirlingQuestionTitle" CssClass="settinglabel" ForControl="txtTitle" />
                            </div>
                            <div class="settingrow">
                                <asp:TextBox ID="txtTitle" runat="server" CssClass="settingtextbox verywidetextbox"
                                    MaxLength="255" />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTitle"
                                    ErrorMessage="*" ValidationGroup="SwirlingQuestion" />
                            </div>
                            <div class="settingrow">
                                <mp:SiteLabel ID="lblQuestion" runat="server" ResourceFile="SwirlingQuestionResource"
                                    ConfigKey="SwirlingQuestionQuestion" CssClass="settinglabel" ForControl="txtQuestion" />
                            </div>
                            <div class="settingrow">
                                <asp:TextBox ID="txtQuestion" runat="server" TextMode="MultiLine" CssClass="settingtextbox verywidetextbox multitext" />
                                <asp:RequiredFieldValidator ID="rfvQuestion" runat="server" ControlToValidate="txtQuestion"
                                    ErrorMessage="*" ValidationGroup="SwirlingQuestion" />
                            </div>
                            <div class="settingrow">
                                <mp:SiteLabel ID="lblItemUrl" runat="server" ResourceFile="SwirlingQuestionResource"
                                    ConfigKey="ItemUrl" CssClass="settinglabel" ForControl="txtItemUrl" />
                                <span id="spnUrlWarning" runat="server" style="font-weight: normal;" class="txterror">
                                </span>
                                <asp:HiddenField ID="hdnQuestion" runat="server" />
                            </div>
                            <div class="settingrow">
                                <asp:TextBox ID="txtItemUrl" runat="server" CssClass="settingtextbox verywidetextbox" />
                                <asp:RequiredFieldValidator ID="rfvItemUrl" runat="server" ControlToValidate="txtItemUrl"
                                    ErrorMessage="*" ValidationGroup="SwirlingQuestion" />
                            </div>
                            <div class="settingrow">
                                <mp:SiteLabel ID="lblAnswer" runat="server" ResourceFile="SwirlingQuestionResource"
                                    ConfigKey="SwirlingQuestionAnswer" CssClass="settinglabel" ForControl="ecAnswer" />
                            </div>
                            <div class="settingrow">
                                <mpe:EditorControl ID="ecAnswer" runat="server" />
                            </div>
                            <div class="settingrow">
                                <mp:SiteLabel ID="lblIsPublished" runat="server" ResourceFile="SwirlingQuestionResource"
                                    ConfigKey="IsPublished" CssClass="settinglabel" ForControl="chkIsPublished" />
                            </div>
                            <div class="settingrow">
                                <asp:CheckBox ID="chkIsPublished" runat="server" />
                            </div>
                            <div class="settingrow">
                                <mp:SiteLabel ID="lblIsHot" runat="server" ResourceFile="SwirlingQuestionResource"
                                    ConfigKey="IsHot" CssClass="settinglabel" ForControl="chkIsHot" />
                            </div>
                            <div class="settingrow">
                                <asp:CheckBox ID="chkIsHot" runat="server" />
                            </div>
                            <div class="settingrow">
                                <mp:SiteLabel ID="lblStartDate" runat="server" ForControl="dpBeginDate" ConfigKey="StartDateLabel"
                                    ResourceFile="SwirlingQuestionResource" CssClass="settinglabel"></mp:SiteLabel>
                                <mp:jsCalendarDatePicker ID="dpBeginDate" runat="server" ShowTime="true" CssClass="forminput" />
                            </div>
                            <div class="settingrow">
                                <mp:SiteLabel ID="lblCreatedName" runat="server" ResourceFile="SwirlingQuestionResource"
                                    ConfigKey="CreatedName" CssClass="settinglabel" ForControl="txtCreatedName" />
                            </div>
                            <div class="settingrow">
                                <asp:TextBox ID="txtCreatedName" runat="server" MaxLength="255" CssClass="settingtextbox widetextbox" />
                            </div>
                            <div class="settingrow">
                                <mp:SiteLabel ID="lblCreatedEmail" runat="server" ResourceFile="SwirlingQuestionResource"
                                    ConfigKey="CreatedEmail" CssClass="settinglabel" ForControl="txtCreatedEmail" />
                            </div>
                            <div class="settingrow">
                                <asp:TextBox ID="txtCreatedEmail" runat="server" MaxLength="255" CssClass="settingtextbox widetextbox" />
                            </div>
                            <div class="settingrow">
                                <mp:SiteLabel ID="lblCreatedPhone" runat="server" ResourceFile="SwirlingQuestionResource"
                                    ConfigKey="CreatedPhone" CssClass="settinglabel" ForControl="txtCreatedPhone" />
                            </div>
                            <div class="settingrow">
                                <asp:TextBox ID="txtCreatedPhone" runat="server" MaxLength="255" CssClass="settingtextbox normaltextbox" />
                            </div>
                            <div class="settingrow">
                                <portal:mojoButton ID="btnSave" runat="server" ValidationGroup="SwirlingQuestion" />
                                <portal:mojoButton ID="btnBack" runat="server" CausesValidation="false" />
                                <portal:mojoButton ID="btnDelete" runat="server" CausesValidation="false" />
                            </div>
                            <div class="settingrow">
                                <portal:mojoLabel ID="lblError" runat="server" CssClass="txterror" />
                            </div>
                        </asp:Panel>
                    </fieldset>
                </div>
            </portal:mojoPanel>
            <div class="cleared">
            </div>
        </asp:Panel>
        <mp:CornerRounderBottom ID="cbottom1" runat="server" />
    </portal:mojoPanel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />
